---
layout: "default"
title: "WritableKeyPath"
description: "Swift documentation for 'WritableKeyPath': A key path that supports reading from and writing to the resulting value."
keywords: "WritableKeyPath,class,swift,documentation"
root: "/v4.2"
---

<div class="intro-declaration"><code class="language-swift">class WritableKeyPath&lt;Root, Value&gt;</code></div>

<div class="discussion comment">
    <p>A key path that supports reading from and writing to the resulting value.</p>
</div>

<table class="standard">
<tr>
<th id="inheritance">Inheritance</th>
<td>
<code class="inherits">AnyKeyPath, Equatable, Hashable, KeyPath, PartialKeyPath, _AppendKeyPath</code>
<span class="viz"><a href="hierarchy/">View Protocol Hierarchy &rarr;</a></span>
</td>
</tr>



<tr>
<th>Import</th>
<td><code class="language-swift">import Swift</code></td>
</tr>

</table>









